package com.stlm2.dems.entity;

/**
 * Created by apple on 2017/10/12.
 */
public enum ValueAddedServicesKind {

    DianChiBao(1) {
        public String toString() {
            return "叮当网电池保服务";
        }
    },
    JinShuiBao(2) {
        public String toString() {
            return "叮当网进水保服务";
        }
    },
    YanBao(3) {
        public String toString() {
            return "叮当网延长保修服务";
        }
    },
    BanJiaHuanXin(4) {
        public String toString() {
            return "叮当网半价换新服务";
        }
    },
    SuiPing(5) {
        public String toString() {
            return "叮当网碎屏服务";
        }
    },
    YiWai(6) {
        public String toString() {
            return "叮当网意外服务";
        }
    },
    ZhiZun(7) {
        public String toString() {
            return "叮当网至尊保服务";
        }
    };
    private final int val;

    ValueAddedServicesKind(int n) {
        val = n;
    }

    public int getIntValue() {
        return val;
    }

    public static ValueAddedServicesKind getByIntValue(int n) {
        switch (n) {
            case 1:
                return DianChiBao;
            case 2:
                return JinShuiBao;
            case 3:
                return YanBao;
            case 4:
                return BanJiaHuanXin;
            case 5:
                return SuiPing;
            case 6:
                return YiWai;
            case 7:
                return ZhiZun;
            default:
                return null;
        }
    }
}
